package cn.fjsay.java.demo4;

class Phone {
    private String number;

    public Phone(String number) {
        this.number = number;
    }

    public void call(String number) {
        System.out.println("拨打电话给：" + number);
    }

    public void answer() {
        System.out.println("接听电话");
    }
}